package com.anhua.Util;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;

@ConfigurationProperties(prefix = "hello")
public class HelloProperties {

    private String name="丘思琪2";
    private String home;
    private int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public void setName(int age) {
        this.age = age;
    }

    public String getHome() {
        return home;
    }
    public int getAge() {
        return age;
    }

    public void setHome(String home) {
        this.home = home;
    }

    public HelloProperties(String name, String home) {
        this.name = name;
        this.home = home;
    }

    public HelloProperties() {
    }
}
